<?php /* Smarty version Smarty-3.1.13, created on 2013-07-09 04:41:24
         compiled from ".\templates\account.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1781951d573d824ab64-43561868%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '6b12b2daba8893496d5e9cd825370f4a7352bbbe' => 
    array (
      0 => '.\\templates\\account.tpl',
      1 => 1372392048,
      2 => 'file',
    ),
    '76b183ae9ab092866ef1aa82b739ad39fdc5fb7c' => 
    array (
      0 => 'D:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\fin3\\templates\\link.tpl',
      1 => 1373336611,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1781951d573d824ab64-43561868',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.13',
  'unifunc' => 'content_51d573d830aba8_98145202',
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51d573d830aba8_98145202')) {function content_51d573d830aba8_98145202($_smarty_tpl) {?><html>
	<head>
	  <link rel="stylesheet" href="css/style1.css">
	  <link rel="stylesheet" type="text/css" href="./css/main.css" />
    <link rel="stylesheet" type="text/css" href="./css/style.css" />
	</head>
	
<link rel="stylesheet" href="css/fin3.css" />
<script src="js/jquery.min.js" ></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="media/js/jquery.js" type="text/javascript"></script>
<script src="media/js/jquery.dataTables.js" type="text/javascript"></script>
<style type="text/css">
  @import "media/css/demo_table_jui.css";
  @import "media/themes/smoothness/jquery-ui-1.8.4.custom.css";
</style>
<style>
  *{
     font-family: arial;
   }
   input[type=text], 
   textarea {
     width: 200px;
   }
</style>
<script type="text/javascript" charset="utf-8">
  $(document).ready(function(){
    $('#datatables').dataTable({
      "sPaginationType":"full_numbers",
      "aaSorting":[[2, "desc"]],
      "bJQueryUI":true
    });
  });
</script>

	<body>
  	<ul class="menu">
	    <li><a href="#">Home</a></li>
	    <li><a href="index.php">Party Entry</a></li>
	    <li><a href="loan.php">Loan Entry</a></li>
	    <li><a href="loandetail.php">Loan Detail</a></li>
	    <li><a href="account.php">Account</a></li>
	    <li><a href="transaction.php">Transaction</a></li>
	    <li><a href="#">Display</a>
	      <ul>
	        <li><a href="displayClient.php">Parties</a></li>
	        <li><a href="displayLoan.php">Loans</a></li>
	        <li><a href="dispalyTransaction.php">Transactions</a></li>
	        <li><a href="loanreceived.php">LoanReceived</a></li>
	      </ul>
	    </li>
    </ul>
    	
<form name="accountForm" id="accountForm" method="post" action="account.php">
  <h1 align="center">Account Entry</h1>
  <center>
  <table>		
    <tr>
      <th align="right">Account Name :</th>
      <td><input type="text" required=required  name="accountName" autofocus id="accountName" placeholder="Account Name"></td>
    </tr>
    <tr>
      <th align="right" >Other Information :</th>
      <td>
        <textarea cols="17" id="otherInfo" name="otherInfo" rows="5"></textarea>  	
      </td>
    </tr>
    <tr>
      <th align="right">Include In Profit Loss :</th>
      <td><input type="checkbox" name="profitLoss" id="profitLoss" value="y"/> <td>
    </tr>
    <tr>
      <td colspan="2" align="center">
        <input type="reset" name="reset" id="reset" value="Reset">
        <input type="submit" name="sub" id="sub" value="SAVE">
      </td>       
    </tr>
  </table>
</center>
</form>
<br /><br /><br />


<div id="displayDiv">
  <h1 align="center">Account List</h1>
  <table id="datatables" class="display">
    <thead>
      <tr>
        <th>Delete</th>
        <th>Account Name</th>
        <th>Other Information</th>
      </tr>
    </thead>
    
    <tbody>
      <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['sec'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['sec']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['name'] = 'sec';
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['account']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['total']);
?>
      <tr>
        <td align="center"><a onclick="return confirm('Are u Sure to Delete');" href="deleteAccount.php?accountId=<?php echo $_smarty_tpl->tpl_vars['account']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['accountId'];?>
"><img src="./images/deleteIcon.png" width="20px" height="20px"></a></td>
        <td><?php echo $_smarty_tpl->tpl_vars['account']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['accountName'];?>
</td>
        <td><?php echo $_smarty_tpl->tpl_vars['account']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['otherInfo'];?>
</td>
      </tr>
      <?php endfor; endif; ?>
    </tbody>
  </table>
</div>

	</body>
</html><?php }} ?>